package cc.vicp.djx314.starfood.dao.count;

import java.sql.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cc.vicp.djx314.starfood.domain.dish.Dish;

public interface CountMapper {

	public List<Dish> getTopDishByDay(@Param("date") Date date,
			@Param("limit") Integer limit);  //这里的Date是java.sql.Date

	@Deprecated
	public int insertCountDishLastWeek(@Param("start") Date start,
			@Param("end") Date end);  //这里的Date是java.sql.Date

	@Deprecated
	public List<Dish> getTopDishByWeek(@Param("date") Date date,
			@Param("limit") Integer limit);  //这里的Date是java.sql.Date

	public List<Dish> getTopDishByDateRange(@Param("start") Date startDate,
			@Param("end") Date endDate, @Param("limit") Integer limit);

	public List<Map<String, Double>> getSalesByDateRange(
			@Param("start") java.util.Date startDate,
			@Param("end") java.util.Date endDate);
}